<!DOCTYPE html>
<html>

<head>
  <meta charset="UTF-8">
  <meta name="apple-mobile-web-app-capable" content="yes">
  <!-- <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"> -->
  <meta name="apple-mobile-web-app-status-bar-style" content="black">
  <meta name="keywords" content="圣诞快乐">

  <title>圣诞快乐</title>

  <link rel="stylesheet" href="css/index.css" type="text/css" />

  <link href="tr/animations.css" rel="stylesheet">
  <script src="tr/modernizr.custom.js"></script>
  <script src="tr/jquery-1.8.0.min.js"></script>
  <script src="tr/tr.js"></script>
</head>

<body>

<div id="bg-loading" class="pt-page">
  <div class="spinner">
    <div class="bounce1"></div>
    <div class="bounce2"></div>
    <div class="bounce3"></div>
  </div>
</div>

  <div id="div1" class="pt-page">
    <div class="fixed_0"><img class="button-click" src="img/play.png" onclick="bianbiaoti()" id="image-click"> </div>
  </div>

  <!--图层绘制区域  -->
  <canvas class="canvas pt-page" id="can-view"></canvas>
  <!--右上角帮助按钮  -->
  <div class="help"></div>
  <!--文本输入框  -->
  <div class="ui"> <input class="ui-input" type="text" placeholder="" /> <span class="ui-return"></span> </div>
  <!--设置面板-->
  <div class="overlay">
    <div class="tabs">
      <div class="tabs-label"></div>
      <div class="tabs-labels"></div>
    </div>
    <div class="tabs-panels">
      <div class="tabs-panel commands"></div>
    </div>
  </div>
  </div>

  <script src="js/index.js"></script>

  <img href=’../img/bg3.png’ id="bgImage">

  <audio id="sound" controls="controls" loop="loop" hidden="hidden">
    <source src="music.mp3">
  </audio>

  <script>
    var play = document.getElementById('image-click');
    play.style.display = "none";

    var img = document.getElementById('bgImage');

    if(!img.complete){
      img.addEventListener('load',function(){
        /*已加载完*/
        play.style.display = "block";
      });
    } else{
      /*已加载完*/
      play.style.display = "block";
    }

    play.style.display = "none";

    var myVid = document.getElementById("sound");

    function loadAudio() {
      play.style.display = "block";
    };

    myVid.canplay = loadAudio();

  </script>

  <script>
    setTimeout("changeView('#div1')",6000);
  </script>

</body>

</html>
